﻿using JSShop.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JSShop.Model
{
    public class GroupBuyInfo
    {
        private IList<Hishop_GroupBuyCondition> groupBuyConditions;

        public string Content { get; set; }

        public int Count { get; set; }

        public DateTime EndDate { get; set; }

        public IList<Hishop_GroupBuyCondition> GroupBuyConditions
        {
            get
            {
                if (this.groupBuyConditions == null)
                {
                    this.groupBuyConditions = new List<Hishop_GroupBuyCondition>();
                }
                return this.groupBuyConditions;
            }
        }

        public int GroupBuyId { get; set; }

        public int MaxCount { get; set; }

        public decimal NeedPrice { get; set; }

        public decimal Price { get; set; }

        public int ProdcutQuantity { get; set; }

        public int ProductId { get; set; }

        public int SoldCount { get; set; }

        public DateTime StartDate { get; set; }

        public GroupBuyStatus Status { get; set; }
    }
}
